Skip to content

Hall: "Find a game" (search, Continue playing, Surprise me) - #111

Merged
dmccoystephenson merged 1 commit into
mainfrom
feat/hall-finder
Nov 30, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
feat/hall-finder

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

The list page has three ways into a game that the walkable hall lacked: the search box, "Continue playing" and "Random game". This adds them to the hall as one Find a game panel (feature parity between the two).

What it does

  • Open it with the bar's magnifier, F or / on a keyboard, or Y on a controller. The help text names each.
  • Search finds exactly what the list page's search box finds for the same words. Each cabinet in layout.json now carries search = filters.search_text(...), and words are ANDed the same way. A filtered hall (?tag=halloween) lists its lit cabinets first.
  • Continue playing shows the browser's recent games (arcade.recent, the key both pages already write), live ones only, in order.
  • Surprise me picks a live game (from the current search or filter if there is one), never the one you're already at.
  • Picking a game takes you straight to the front of that cabinet, facing it, after a 0.2 s fade (__hall.go, the same pose /hall/?at=<slug> starts in). There's no fade with Reduce motion. A walk across the hall would snag on the rows, so it jumps instead.
  • Keyboard: typing never walks the visitor; ↑/↓ move, Enter goes, Esc closes. Controller: stick or d-pad up/down steps through the list (new up/down/y edges in hall-controls.js), A goes, B closes. Touch: a full-width panel; the stick, card and play button step aside while it's open.
  • Phone bar: up to 480 px, Find and Sound are icons. At 320 px with the "Visible as" pill there's no room for seven 44 px controls, so "All games" moves into the panel ("Every game as a list").

Tests

  • tests/browser/hall_finder_test.cjs (via test_find_a_game_finds_what_the_list_finds): the finder's results equal filters.Filter(q=…).found for 11 queries, and the layout's search equals filters.search_text. Also covers recent ordering, dedupe and blocked storage, and surprise picks.
  • hall_controls_test.cjs: Y, up and down presses register once per push.
  • New tests/browser/hall_finder_check.cjs on desktop, iPhone 13 and 320 px: opening, Continue playing order, narrowing, going (card and prompt up, panel closed), typing doesn't walk, Esc, Surprise me, and the bar fits. All pass.
  • pytest: 707 passed, 1 skipped. hall_ui_check, hall_people_check, hall_atmosphere_check and hall_fame_check all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LYNeuoaYC1Xr17cu7rARyR


drafted by Claude on behalf of Daniel Stephenson

The list page's three ways into a game, in the walkable hall. The bar's
magnifier, F, / or controller Y opens a panel: a search box that finds what
the list's search finds (layout cabinets carry filters.search_text as
`search`), the browser's recent games (arcade.recent) and a random pick.
Choosing one fades to the cabinet's front, facing it (HallWalk.front, as
?at=); reduce motion skips the fade. Typing never walks; the pad steps the
list (up/down edges), A goes, B closes. Phone bar: Find and Sound are icons
up to 480 px; at 320 px with the presence pill "All games" moves into the
panel.

Tests: hall_finder_test.cjs (parity with filters.Filter.found, recent,
surprise), controls Y/up/down edges, hall_finder_check.cjs (desktop, iPhone
13, 320 px bar).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LYNeuoaYC1Xr17cu7rARyR
@dmccoystephenson
dmccoystephenson merged commit 412c22a into main Nov 30, 2026
4 checks passed
@dmccoystephenson
dmccoystephenson deleted the feat/hall-finder branch November 30, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant